package org.zjsru.order.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import org.zjsru.order.pojo.User;

@FeignClient(value = "user-service")
public interface OrderServiceFeign {
    @GetMapping("/user/{userId}")
    User queryUserById(@PathVariable("userId") Long userId);
    
    @GetMapping("/user/check-status")
    User checkUserStatus(@RequestParam("userId") Long userId);
}
